		<div class="centCont">
			<div class="boxCent">
				<?php if (count ($this->spDisplay) > 0):?>
                <div class="tt-boxCent1"><p>SẢN PHẨM KHUYẾN MÃI</p></div>
                <div class="cc-boxCent">
					<div class="mainSP">
					<?php foreach ($this->spDisplay as $dis) :?>
					<div class="boxSP">
						<div class="boxSPT">
							<span><?php echo ($dis['nameC']!= '') ? $dis['nameC'] : $dis['name'];?></span>
						</div>
						<!--boxSPT-->
						<div class="boxSPH">
							<ul>
								<li>
									<table cellspacing="0" cellpadding="0" width="100%">
										<tbody>
											<tr>
												<td class="product_image">
													<a href="#"><img src="<?php echo WEB_LINK . "/";?><?php echo FunctionCommon::getImage('img-the-min', $dis['code']);?>" /></a>
												</td>
											</tr>
										</tbody>
									</table>
								</li>
							</ul>
						</div><!--boxSPH-->
						<div class="boxSPM1">
							<ul>
								<li><span class="SP_giamgiadacbiet"><?php echo ($dis['gia1']!=0) ? number_format($dis['gia1']) : number_format($dis['gia2']);?>,000 VNĐ</span> <span class="sanphamban-dacbiet"><?php echo ($dis['check_km']=='1') ? number_format($dis['gia2']) : number_format($dis['gia1']);?>,000 VNĐ</span></li>
							</ul>
						</div><!--boxSPM1-->
						<div class="iconKM"><img src="<?php echo WEB_LINK . "/";?>images/icon-khuyenmai.png" /></div>
						<div class="khuyenmaidacbiet">
							<a><?php echo ($dis['txtKM'] != '') ? $dis['txtKM'] : 'Khuyến mãi.';?></a>
						</div>
						<div class="boxSPNdacbiet">
							<ul>
								<li class="Mua"><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $dis['danhmuc_id'];?>-<?php echo $dis['iddm'];?>-<?php echo $dis['iddmc'];?>-<?php echo $dis['id'];?>#content">Mua</a></li>
								<li class="chitiet"><a href="<?php echo WEB_LINK . "/";?>product/chi-tiet-san-pham-<?php echo $dis['danhmuc_id'];?>-<?php echo $dis['iddm'];?>-<?php echo $dis['iddmc'];?>#content">Chi tiết</a></li>
							</ul>
						</div><!--boxSPNdacbiet-->
					</div><!--boxSP-->
					<?php endforeach;?>
					</div>
				</div>
				<?php endif;?>
                <!--tt-boxCent-->
				<?php if ($total = count ($this->SanPhamA) > 0) :?>
				<?php foreach ($this->SanPhamA as $sanphamValue) : if (count ($sanphamValue['value']) > 0):?>
                <div class="tt-boxCent">
                   	<p><?php echo $sanphamValue['name'];?></p>
               	</div><!--tt-boxCent-->
                <div class="cc-boxCent">
                   	<div class="mainSP">
						<?php foreach ($sanphamValue['value'] as $sapVa) : ?>
						<?php if (isset ($sapVa['value']) && count ($sapVa['value'])) :?>
                       	<div class="boxSP"> 
							<div class="tenSP">
								<p class="gioithieusp"><?php echo $sapVa['name'];?></p>
								<div class="boxSPN">
									<ul>
										<li class="chitiet"><a href="<?php echo WEB_LINK . "/";?>product/chi-tiet-san-pham-<?php echo isset($sanphamValue['danhmuc_id']) ? $sanphamValue['danhmuc_id'] : '0';?>-<?php echo $sanphamValue['id'];?>-<?php echo $sapVa['id'];?>#content">Chi tiết</a></li>
									</ul>
								</div><!--boxSPN-->
								<p class="gioithieusp">&nbsp;</p>
							</div>
							<div class="boxSPH">
								<ul>
                                    <li>
                                        <table cellspacing="0" cellpadding="0" width="100%">
											<tbody>
												<tr>
													<td class="product_image">
														<a href="<?php echo WEB_LINK . "/";?>product/chi-tiet-san-pham-<?php echo isset($sanphamValue['danhmuc_id']) ? $sanphamValue['danhmuc_id'] : '0';?>-<?php echo $sanphamValue['id'];?>-<?php echo $sapVa['id'];?>#content"><img src="<?php echo WEB_LINK . "/";?><?php echo FunctionCommon::getImage('img-the-min', $sapVa['code']);?>" /></a>
													</td>
												</tr>
											</tbody>
										</table>
                                    </li>
								</ul>
							</div><!--boxSPH-->
                            <div class="boxSPM">
								<div class="boxSPBan">
									<ul>
										<?php foreach ($sapVa['value'] as $sp) :?>
										<?php if ($sp['soluong'] > 0) :?>
										<li><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php $sp['danhmuc_id'];?>-<?php echo $sp['iddm'];?>-<?php echo $sp['iddmc'];?>-<?php echo $sp['id'];?>#content"><?php echo ($sp['check_km']=='1') ? number_format($sp['gia2']) : number_format($sp['gia1']);?>.000 VNĐ</a></li>
										<?php else :?>
										<li><a onclick="messageError()" href="#content"><?php echo ($sp['check_km']=='1') ? number_format($sp['gia2']) : number_format($sp['gia1']);?>.000 VNĐ</a></li>
										<?php endif;?>
										<?php endforeach;?>
									</ul>
								</div>
								<div class="boxSP-giagoc">
									<ul>
										<?php foreach ($sapVa['value'] as $sp) :?>
										<?php if ($sp['soluong'] > 0) :?>
										<li><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $sp['danhmuc_id'];?>-<?php echo $sp['iddm'];?>-<?php echo $sp['iddmc'];?>-<?php echo $sp['id'];?>#content"><?php echo ($sp['check_km']=='1') ? number_format($sp['gia1']).',000 VNĐ' : '0 VNĐ';?></a></li>
										<?php else :?>
										<li><a onclick="messageError()" href="#content"><?php echo ($sp['check_km']=='1') ? number_format($sp['gia1']).',000 VNĐ' : '0 VNĐ';?></a></li>
										<?php endif;?>
										<?php endforeach;?>
									</ul>
                                </div><!--boxSP-giagoc-->
								<div class="boxSP-tonkho">
									<ul>
										<?php foreach ($sapVa['value'] as $sp) :?>
										<?php if ($sp['soluong'] > 0) :?>
										<li><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $sp['danhmuc_id'];?>-<?php echo $sp['iddm'];?>-<?php echo $sp['iddmc'];?>-<?php echo $sp['id'];?>#content">[<?php echo $sp['soluong'];?>]</a></li>
										<?php else :?>
										<li><a onclick="messageError()" href="#content">[<?php echo $sp['soluong'];?>]</a></li>
										<?php endif;?>
										<?php endforeach;?>
									</ul>
								</div><!--boxSP-tonkho-->
							</div><!--boxSPM-->
						</div><!--boxSP-->
						<?php elseif($sanphamValue['danhmuc_id'] > '1'): ?>
						<div class="boxSP"> 
							<div class="tenSP">
								<p class="gioithieusp"><?php echo $sapVa['name'];?></p>
								<div class="boxSPN">
									<ul>
										<li class="chitiet"><a href="<?php echo WEB_LINK . "/";?>product/chi-tiet-san-pham-<?php echo $sapVa['danhmuc_id'];?>-<?php echo $sapVa['iddm'];?>-<?php echo $sapVa['iddmc'];?>#content">Chi tiết</a></li>
									</ul>
								</div><!--boxSPN-->
								<p class="gioithieusp">&nbsp;</p>
							</div>
							<div class="boxSPH">
								<ul>
                                    <li>
                                        <table cellspacing="0" cellpadding="0" width="100%">
											<tbody>
												<tr>
													<td class="product_image">
														<a href="<?php echo WEB_LINK . "/";?>product/chi-tiet-san-pham-<?php echo $sapVa['danhmuc_id'];?>-<?php echo $sapVa['iddm'];?>-<?php echo $sapVa['iddmc'];?>#content"><img src="<?php echo WEB_LINK . "/";?><?php echo FunctionCommon::getImage('img-the-min', $sapVa['code']);?>" /></a>
													</td>
												</tr>
											</tbody>
										</table>
                                    </li>
								</ul>
							</div><!--boxSPH-->
                            <div class="boxSPM">
                            	<?php if ($sapVa['soluong'] > 0) :?>
								<div class="boxSPBan">
									<ul>
										<li><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $sapVa['danhmuc_id'];?>-<?php echo $sapVa['iddm'];?>-<?php echo $sapVa['iddmc'];?>-<?php echo $sapVa['id'];?>#content"><?php echo ($sapVa['check_km']=='1') ? number_format($sapVa['gia2']) : number_format($sapVa['gia1']);?>.000 VNĐ</a></li>
									</ul>
								</div>
								<div class="boxSP-giagoc">
									<ul>
										<li><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $sapVa['danhmuc_id'];?>-<?php echo $sapVa['iddm'];?>-<?php echo $sapVa['iddmc'];?>-<?php echo $sapVa['id'];?>#content"><?php echo ($sapVa['check_km']=='1') ? number_format($sapVa['gia1']).',000 VNĐ' : '0 VNĐ';?></a></li>
									</ul>
                                </div><!--boxSP-giagoc-->
								<div class="boxSP-tonkho">
									<ul>
										<li><a href="<?php echo WEB_LINK . "/";?>product/them-gio-hang-<?php echo $sapVa['danhmuc_id'];?>-<?php echo $sapVa['iddm'];?>-<?php echo $sapVa['iddmc'];?>-<?php echo $sapVa['id'];?>#content">[<?php echo $sapVa['soluong'];?>]</a></li>
									</ul>
								</div><!--boxSP-tonkho-->
								<?php else :?>
								<div class="boxSPBan">
									<ul>
										<li><a href="#content"><?php echo ($sapVa['check_km']=='1') ? number_format($sapVa['gia2']) : number_format($sapVa['gia1']);?>.000 VNĐ</a></li>
									</ul>
								</div>
								<div class="boxSP-giagoc">
									<ul>
										<li><a href="#content"><?php echo ($sapVa['check_km']=='1') ? number_format($sapVa['gia1']).',000 VNĐ' : '0 VNĐ';?></a></li>
									</ul>
                                </div><!--boxSP-giagoc-->
								<div class="boxSP-tonkho">
									<ul>
										<li><a href="#content">[<?php echo $sapVa['soluong'];?>]</a></li>
									</ul>
								</div><!--boxSP-tonkho-->
								<?php endif;?>
							</div><!--boxSPM-->
						</div><!--boxSP-->
						<?php endif; endforeach;?>
                    </div><!--mainSP-->
                </div><!--cc-boxCent-->
                <?php endif; endforeach; endif;?>
			</div><!--centCont-->